






<div class="admin-biaogelist">

    <div class="listbiaoti am-cf">
        <ul class="am-icon-flag on"> 拼多多任务管理</ul>

        <dl class="am-icon-home" style="float: right;">当前位置： 首页 > <a href="#">拼多多任务管理</a></dl>

        <!--<dl>
          <button type="button" class="am-btn am-btn-danger am-round am-btn-xs am-icon-plus" > 补充线订单</button>
        </dl>-->
        <!--这里打开的是新页面-->

    </div>

    <div class="fbneirong">
        <form class="am-form am-g">
            <table width="100%" class="am-table am-table-bordered am-table-radius am-table-striped am-table-hover">
                <thead>
                <tr class="am-success">
                    <th class="table-check"><input type="checkbox" /></th>

                    <th class="table-id">ID</th>
                    <th class="table-title">主商品</th>
                    <th class="table-type">单量</th>
                    <th class="table-author am-hide-sm-only">本金</th>
                    <th class="table-author am-hide-sm-only">金币</th>
                    <th class="table-date am-hide-sm-only">价格类型</th>
                    <th class="table-date am-hide-sm-only">开团价格</th>
                    <th class="table-date am-hide-sm-only">拼团价格</th>
                    <th width="130px" class="table-set">任务状态</th>
                    <th width="130px" class="table-set">操作</th>

                </tr>
                </thead>
                <tbody class="impowdith">





                </tbody>
            </table>

            <!--  <div class="am-btn-group am-btn-group-xs">
                  <button type="button" class="am-btn am-btn-default"><span class="am-icon-plus"></span> 删除</button>
                  <button type="button" class="am-btn am-btn-default"><span class="am-icon-save"></span> 上架</button>
                  <button type="button" class="am-btn am-btn-default"><span class="am-icon-save"></span> 下架</button>
                  <button type="button" class="am-btn am-btn-default"><span class="am-icon-save"></span> 移动</button>
                  <button type="button" class="am-btn am-btn-default"><span class="am-icon-plus"></span> 新增</button>
                  <button type="button" class="am-btn am-btn-default"><span class="am-icon-save"></span> 保存</button>
                  <button type="button" class="am-btn am-btn-default"><span class="am-icon-archive"></span> 移动</button>
                  <button type="button" class="am-btn am-btn-default"><span class="am-icon-trash-o"></span> 删除</button>
              </div>-->



            <div id="Pagination" style="margin:20px auto" style="display:none"></div>

            <!--  <ul class="am-pagination am-fr">


              </ul>-->




            <hr />

        </form>



    </div>



    <script>







        var on_request=false;
        var type=1;
        var page=1;






        function setlisthtnml(data) {
            var html="";


      /*  <a class="am-btn am-btn-default am-btn-xs am-text-success am-round am-icon-file" data-am-modal="{target: '#my-popups'}" title="添加子栏目"></a>*/

            if(data.list.length>0){
                $.each(data.list, function (key, value) {
                     html=html+
                         '<tr><td><input type="checkbox" /></td>\n'+
                         '<td>'+value.id+'</td>\n'+
                         '<td>'+value.goods_name+'</td>\n'+
                        '<td>'+value.number+'</td>\n'+
                        '<td>'+value.money+'</td>\n'+
                        '<td>'+value.gold+'</td>\n'+
                        '<td>'+value.pay_type+'</td>\n'+
                         '<td>'+value.single_price+'</td>\n'+
                         '<td>'+value.group_price+'</td>\n'+
                         '<td>'+value.status+'</td>\n'+
                        '<td>'+
                         ''+
                         '<div class="am-btn-toolbar">\n'+
                         '<div class="am-btn-group am-btn-group-xs">\n'+
                         ' <div class="am-btn am-btn-default am-btn-xs am-text-success am-round"><a class="am-icon-search"   href="<?php echo base_url()."business/viewpddtask/'+value.id+'"; ?>"  title="查看订单详情"></a> </div>\n'+
                         ' <a class="am-btn am-btn-default am-btn-xs am-text-success am-round am-icon-file"  href="<?php echo base_url()."business/order_list/'+value.id+'"; ?>" title="查看"></a>\n'+
                         ' <div class="am-btn am-btn-default am-btn-xs am-text-success am-round"><a class="am-icon-search"   href="<?php echo base_url()."business/relodpddtask/'+value.id+'"; ?>"  title="重新发布"></a> </div>\n'+
                         '</div>\n'+
                         '</div>'+
                         ''+
                         '</td></tr>';
                });
                $(".impowdith").html(html);
                $('#Pagination').show();
            }else{
                html += '<li><div style="width:100%;text-align:center;">&nbsp暂无数据</div></li>';
                $(".impowdith").html(html);
                $('#Pagination').hide();
            }


         /*   $(".showtilog").click(function () {

                document.getElementById('body').innderHTML = '<div class="am-dimmer am-active" data-am-dimmer="" style="display: block;"></div>';


                $("#my-popups").show();
            });*/

        }







        gettasklist();
        function gettasklist() {
            var url = "<?php echo base_url(); ?>/Business/GetPDDTaskList";
            var postdata = {
                'page': page,
                'epage': 10
            };
            $.post(url, postdata, function (data) {
                on_request = false;
                setlisthtnml(data);
                setPagination("Pagination", data.count, page, data.epage, function (clickPage) {
                    page = parseInt(clickPage) + 1;
                    gettasklist();
                });
            },'json');

        }





    </script>










    <div class="foods">
        <ul>
            版权所有@2015.
        </ul>
        <dl>
            <a href="" title="返回头部" class="am-icon-btn am-icon-arrow-up"></a>
        </dl>
    </div>




</div>

</div>




</div>


<!--<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>-->
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="<?php echo base_url() . 'public/business/'; ?>assets/js/polyfill/rem.min.js"></script>
<script src="<?php echo base_url() . 'public/business/'; ?>assets/js/polyfill/respond.min.js"></script>
<script src="<?php echo base_url() . 'public/business/'; ?>assets/js/amazeui.legacy.js"></script>


<!--[if (gte IE 9)|!(IE)]><!-->
<script src="<?php echo base_url() . 'public/business/'; ?>assets/js/amazeui.min.js"></script>
<!--<![endif]-->



</body>
</html>